/*
 * @Description:
 * @Author:
 * @Date: 2024-12-22 11:31:13
 * @LastEditTime: 2024-12-22 11:45:32
 * @LastEditors: XXX
 */

type OpenWindow = {
  (url: string, name: string, width: number, height: number): void
}

// export default function openWindow (url: string, name: string, width: number, height: number) {
//   window.open(url, name, `${width},${height}`)
// }

const openWindow: OpenWindow = (url, name, width, height) => {
  window.open(url, name, `${width},${height}`)
}

export default openWindow
